STEP 2: Let's program our sprite to introduce itself to the user.

  • Click on . Drag out Say. Change the green text to "Hi! I'm Alex!"
  • In , drag out Wait.

The green text in the say command is a string. In Python, a string is any letter, word, or sentence surrounded by quotes. In Codesters, strings always appear green. "This is a string."

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)